onmessage = function (e) {
	let count =999999999;
	step1 =false;
	step2 =false;
	let data = e.data;
	if(data.event=="start"){
		console.log("开始");
		data.list[0] ={};
		for(let i=0; i<count; i++){
			if(i>count*0.66&&!step2){
				console.log("二阶段");
				data.list[0].title ="快了...";
				step2 =true;
				postMessage({
					event:"step",
					value:2
				});
			}else if(i>count*0.33&&!step1){
				console.log("一阶段");
				data.list[0].title ="一阶段进行中...";
				step1 =true;
				postMessage({
					event:"step",
					value:1
				});
			}
		}
		postMessage({
			event:"step",
			value:3
		});
	}
}

